package com.example.e02;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

public class HelloWorld extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        // 获取控件引用
        TextView textView = (TextView) findViewById(R.id.textView01);
        Button button = (Button) findViewById(R.id.button01);
    }
}